#ifndef COMMON_INCLUDE
#define COMMON_INCLUDE

int
send_msg(int fd_client, char *msg);

int
attend_hello(fd_list list, int i);

int
send_hello(fd_list list, int i, int global_port);

int
connect_to_server(fd_list list, int j);

int
get_files(fd_list list, int i);

int
load_files(fd_list list, int i);

int
get_metadata(fd_list list, int i);

int
load_metadata(fd_list list, int i);

int
get_slice(fd_list list, int i);

int
get_file_from_server(fd_list list, int i);

void
configure_new_file(fd_list list, int i);

int
attend_new_file(fd_list list, int i);

#endif
